package com.principle.memento;

public class Client {
    public static void main(String[] args) {
        GameRole gameRole = new GameRole(1, 1);
        Memento memento = gameRole.createMemento();
        Caretaker caretaker = new Caretaker();
        caretaker.setMemento(memento);
        gameRole.setVit(44);
        gameRole.setDef(44);
        gameRole.recoverRole(memento);
        gameRole.display();
    }
}
